# coding=utf-8
'''
Created on 2016��11��1��

@author: hhl
'''
from example.utils.tool_func import add_api_resource
from flask_restful import Resource
import os

@add_api_resource("/git/pull")
class GitPull(Resource):
    """git 更新
    """
    
    def post(self):
        return self._method()
        
    def get(self):
        """git 更新
        """ 
        return self._method()
    
    
    def _method(self):
        """git 更新
        """
        os.system("cd /data/")
        return "SUCCESS" 
